<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%@ page import="org.vectrics.recruiter.job.Job" %>
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="org.vectrics.recruiter.struts.JobApplicationForm" %>
<%@ page import="org.vectrics.hibernate.ThreadProperties" %>
<%
	String domainId = ThreadProperties.getUriDomainId();
	String formAction = "/profile/" + domainId + "/job/apply";
%>


<vectrics:errors/>
<jsp:useBean id="form" class="org.vectrics.recruiter.struts.JobApplicationForm" scope="request"/>
			

<html:form action="<%=formAction%>" method="POST" focus="resumeType" enctype="multipart/form-data">
	<html:hidden property="personId"/>
	<html:hidden property="jobId"/>
	<html:hidden property="jobTitle"/>
	<html:hidden property="resumeType"/>
	<html:hidden property="coverLetter"/>
	<html:hidden property="resumeName"/>
	<html:hidden property="resumeId"/>
	
	<table>
		<tr>
			<td valign="TOP">
				<table width="600" cellpadding="4" cellspacing="1">
					<tr>
						<td class="formBg1">
							<font class="stdFont">Job:</font>
						</td>
						<td class="formBg1">
							<font class="stdFont"><bean:write name="form" property="jobTitle"/></font>
						</td>
					</tr>
					<tr>
						<td class="formBg2">
							<font class="stdFont">Resume Name:</font>
						</td>
						<td class="formBg2">
							<html:text property="resumeName" styleClass="formEditClass" maxlength="80"/>
						</td>
					</tr>
					<tr>
						<tr>
							<td class="formBg1">
								<font class="stdFont">File:</font>
							</td>
							<td class="formBg1">
								<html:file property="uploadFile" styleClass="formEditClass"/>
							</td>
						</tr>
					</tr>

					<tr>
						<td colspan="2">
							<font class="stdFont">Click the 'Browse' button to select a Word resume saved on your computer.&nbspThen press the 'Upload' button to finish the upload.</font>
						</td>
					</tr>
				</table>
				<table>
					<tr>
						<td valign="TOP" align="left">
							<vectrics:formButton name="prevResumeUpload" code="public.button.wide" phraseCode="button.previous" value="submit"/>
						</td>
						<td>
							<vectrics:formButton name="nextResumeUpload" code="public.button.wide" phraseCode="button.next" value="submit"/>
						</td>
						<td>&nbsp;</td>
						<td>
							<vectrics:formButton name="cancel" code="public.button.cancel" phraseCode="button.cancel" value="submit"/>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>